<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		


		function a(num) {
			if(num==1){
				return  1;
			}
			return a(num-1)+num;
		}
		
		// 1+2+3+4+5

		a(5);


		function a(num) {
			return b(num-1)+num;
		}

		function b(num) {
			return num*2;
		}


		a(10);

		



	</script>
</head>
<body>
	
</body>
</html>